//
// Created by hunan on 2025/9/21.
//
#include "../log_description.h"
#include "../log_public_module.h"
#include <gtest/gtest.h>

TEST(TestLogModule, LogFunction)
{
    LogUtilDecorator decorator;
    const char * ptr = LogUtilDecorator::Log("%s and %s", "name", "test");
    printf("%s.\n", ptr);
}

TEST(TestLogModule, SocketModuleLogDescriptionLog)
{
    LOG_TCP_MODULE("hell world");
    LogUtilDecorator::UpdateModuleState(SOCKET_MODULE_NAME, 0);
    LOG_TCP_MODULE("enable or disable test");
    LogUtilDecorator::UpdateModuleState(SOCKET_MODULE_NAME, 1);
    LOG_SOCKET_MODULE("enable test");
}